ABOUTDEVELOPERS |
SpatialStream® Code Examples
Adding Layers
This example demonstrates how to simply add layers to a map using a Map Layer object. The map layer uses the GetMap functional component to construct web requests and retrieve images, in this case Neighborhood Boundaries, to display on the map.
GetMap
layer = new Dmp.Layer.WmsLayer("neighborhoodLayer", "SS");
layer.addChild("neighborhoodResource", "ACCOUNT_FOLDER/Neighborhoods", "", { zIndex: 3, zoomRange: { }); min: 10, max: 19 } map.addEntity(layer); Run Sample View Video Back To Index |